package com.yoomiito.app.ui.yijiayou

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoomiito.app.R
import com.yoomiito.app.model.SearchTip

class DistantionAdapter(data:List<SearchTip>?) :BaseQuickAdapter<SearchTip,BaseViewHolder>(R.layout.item_station_1,data){
    override fun convert(helper: BaseViewHolder?, item: SearchTip?) {
        helper?.setText(R.id.tv1,"${item?.name} 附近的加油站")
        helper?.setText(R.id.tv2,item?.address)
        helper?.setText(R.id.tv3,item?.distance)
    }

}